package com.dxyxx.pojo;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class ResponseResult<T> {
	public ResponseResult() {
		code = 0;
		info = "initial";
	}

	public ResponseResult(int code, String info, T object) {
		this.code = code;
		this.info = info;
		this.object = object;
	}

	private int code; // 1 or 0 。。0表示失败

	private String info;

	private T object;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public void setObject(T object) {
		this.object = object;
	}

	public T getObject() {
		return object;
	}

}
